local M = {}

---将RGB值转换为颜色
---@param r number
---@param g number
---@param b number
---@param a number
---@return Color
function M.ToColor(r, g, b, a)
	---@type Color
	return {
		r = r / 255,
		g = g / 255,
		b = b / 255,
		a = a / 255,
	}
end

---将XYZ值转换为3D坐标
---@param x number
---@param y number
---@param z number
---@return Vector3
function M.ToVector3(x, y, z)
	return {
		x = x,
		y = y,
		z = z,
	}
end

return M